<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__VIEW__/css/style1.css" rel="stylesheet" type="text/css" />
<link href="__VIEW__/css/select.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="__STATIC__/css/hdjs.css" />
<script type="text/javascript" src="__STATIC__/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/hdjs.min.js"></script>
<script type="text/javascript" src="__VIEW__/js/select-ui.min.js"></script>
<script>
$(function(){
	

	$('#addTypeAttr').validate({
		attrname:{
			rule:{
				required:true
			},
			error:{
				required:'属性名必须填写'
			},
			message:'请输入属性名'
		},
		attrvalue:{
			rule:{
				required:true
			},
			error:{
				required:'属性值必须填写'
			}
			
		}
		
	});
	})
</script>

  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
});
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">类型管理</a></li>
    <li><a href="#">添加类型属性</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
   
    <div id="usual1" class="usual"> 
     
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected">添加类型属性</a></li> 
    <!--<li><a href="#tab2">自定义</a></li>--> 
  	</ul>
    </div> 
    
  	<div id="tab1" class="tabson">
    
    <div class="formtext">Hi，<b>{$hd.session.adminUser}</b>，欢迎管理员大人</div>
    <form action="{|U:'TypeAttr/editAttr'}" method="post" id="addTypeAttr">
   	<input type="hidden" value="{$typeAttr.id}" name="id" />
    <ul class="forminfo">
    <!--<li><label for="">类型名:</label><strong style="display: inline-block;line-height:30px;">{$hd.get.tname}</strong></li>-->
    <li><label for="attrname">属性名<b>*</b></label><input id="attrname" name="attrname" type="text" class="dfinput" placeholder="请输入分类名称"  style="width:518px;" value="{$typeAttr.attrname}" /></li>
   
    <li><label>属性类型<b>*</b></label>
    <div class="vocation">
    <select class="select1" name="attrtype">
    	<option value="0" <if value="$typeAttr.attrtype==0">selected="selected"</if>>属性</option>
    	<option value="1" <if value="$typeAttr.attrtype==1">selected="selected"</if>>规格</option>
    </select>
    </div>
    
    </li>
   	<li><label>属性值<b>*</b></label>
   		<textarea name="attrvalue" placeholder="请使用|或,来分隔多个属性值 " id="attrvalue" cols="30" rows="10" style="resize:none;padding:5px;width:518px;border:1px solid dodgerblue;" >{$typeAttr.attrvalue}</textarea>请使用|或,来分隔多个属性值 </li> 
    	
    <li><label>&nbsp;</label><input type="submit" class="btn" value="修改属性"/></li>
    </ul>
    </form>
    </div> 
    
    
	</div> 

    
    
    </div>


</body>

</html>
